<?php

use \think\Request;
use \think\facade\Route;

Route::get("hello/<name?>", 'index/hello');

/*Route::rule('zhi/:name?', function(Request $request, $name) {
	return $request->name = $name;
});*/


// 路由重定向到类的方法
Route::get('user/index', '\app\demo\controller\user\Demo@index');